package editor

import (
	"fmt"
	"os"
	"wails/modules/editor/services"
	"wails/modules/editor/services/srconfig"
	"wails/modules/editor/services/srfile"
)

func Init() {
	sr.Config = &srconfig.ConfigService{}
	sr.File = &srfile.FileService{}

	if err := sr.InitEditor(); err != nil {
		fmt.Println(err)
		os.Exit(-1)
	}

}
